projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10d0ca0
)
GtkTextView: disconnect the magifier on destroy
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Dec 2014 00:19:24 +0000
(19:19 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Dec 2014 00:19:24 +0000
(19:19 -0500)
This prevents warnings that would otherwise happen when
the magifier is finalized.
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index b619ab09987e07cf0aabd8b1cf3932b8de22fea8..117e561cea3923e2ddc2a67417330ef9e05811d9 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-3272,6
+3272,9
@@
gtk_text_view_destroy (GtkWidget *widget)
priv->pixel_cache = NULL;
}
+ if (priv->magnifier)
+ _gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
+
GTK_WIDGET_CLASS (gtk_text_view_parent_class)->destroy (widget);
}